package com.construction.api.controller.ocr.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class IdCardBackRsp {
    private String issue;
    private String startDate;
    private String endDate;

    /**
     * normal-识别正常
     * reversed_side-身份证正反面颠倒
     * non_idcard-上传的图片中不包含身份证
     * blurred-身份证模糊
     * other_type_card-其他类型证照
     * over_exposure-身份证关键字段反光或过曝
     * over_dark-身份证欠曝（亮度过低）
     * unknown-未知状态
     */
    private String imageStatus;

    public boolean success() {
        return (Objects.equals("normal", this.getImageStatus())
                || Objects.equals("reversed_side", this.getImageStatus()));
    }
}
